package com.migo.utils;


/**
 * Created by paik on 2017/12/11.
 */
public class HttpMailUtilRunable implements Runnable {
    private String userEmail;
    private String url;
    private String verificationCode;
    private String ip;


    public HttpMailUtilRunable(String url, String userEmail, String verificationCode, String ip) {
        this.url = url;
        this.userEmail = userEmail;
        this.verificationCode = verificationCode;
        this.ip = ip;
    }


    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getVerificationCode() {
        return verificationCode;
    }

    public void setVerificationCode(String verificationCode) {
        verificationCode = verificationCode;
    }

    @Override
    public void run() {
        HttpClientUtils.sendMail(this.url, this.userEmail, this.verificationCode, this.ip);
    }
}
